package com.googlecode.monitoring.db;

import com.googlecode.monitoring.config.SpringApplicationContext;
import org.springframework.scheduling.quartz.SchedulerFactoryBean;

/**
 * Date: May 18, 2010
 * Time: 6:45:38 PM
 */
public class DbAgentStopper {
	public static void main(String[] args) throws Exception {
		SchedulerFactoryBean scheduler = SpringApplicationContext.getBean(SchedulerFactoryBean.class);
		for (String t : scheduler.getScheduler().getTriggerGroupNames()) {
			System.out.println(t);
		}
		scheduler.getScheduler().shutdown();
	}
}
